package me.helllp.dake.iam.core.convert;

import me.helllp.dake.iam.core.bo.UserBo;
import me.helllp.dake.iam.core.po.DakeUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 应用的结构转换器
 */
@Mapper(componentModel = "spring")
public interface UserConvert {
    UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);

    UserBo toUserBo(DakeUser user);

    DakeUser toUser(UserBo bo);
}
